const User=require('./users');

// User.insertMany({ userid: 'user_1', username: '吴大勋', password: '123456', age: 18, sex: 1, lesson: 3, city: '山西', tel: '18813007814'}, (err) => {
//   if (err) {
//     console.log('插入失败')
//   } else {
//     console.log('插入成功')
//   }
// })

User.insertMany([{ userid: 'user_7', username: 'luoxiaoluo1', password: '123456', age: 18, sex: 1, lesson: 3, city: '山西', tel: '18813007814'}, { userid: 'user_3', username: '大勋勋', password: '123456', age: 18, sex: 1, lesson: 3, city: '山西', tel: '18813007814'}], (err) => {
    if (err) throw err; // 抛出异常
    console.log('插入成功')
  })